﻿@model List<DXWebApplication.Areas.Administrators.Models.SiteModel>
<script>
    initMessages= {
        keyword:'@HttpUtility.JavaScriptStringEncode(MessageResource.Required)'
    }
</script>
@using(Html.BeginForm(null,null,null,FormMethod.Post,new{id="frmSearch"}))
{
    <input type="hidden" id="perJson" value="@ViewBag.PermissionJson"/>
    @Html.Hidden("sort")
    @Html.Hidden("order")
    <div class="advSearch disable">
        <div class="advancedSearch">
            <div class="advTop">
                <h2>@AdminResource.lbSearch</h2>
            </div>
            <div class="advMiddle">
                <div class="advLeft">
                    <div class="advLeftWrapper">
                        <table class="advTable">
                            <colgroup>
                                <col class="asLblCol" />
                                <col class="asValCol" />
                            </colgroup>
                            <tr>
                                <td class="advLabel">@AdminResource.lbKeyword:</td>
                                <td>
                                    <div class="asVal asWd asWdPr">
                                        @Html.TextBox("keyword")                                        
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="advRight">
                    <div class="advRightWrapper">
                        <table cellspacing="0" cellpadding="0" class="advTable">
                            <colgroup>
                                <col class="asLblCol" />
                                <col class="asValCol" />
                            </colgroup>
                            <tr>
                                <td class="advLabel">@AdminResource.lbStatus:</td>
                                <td>
                                    <div class="asVal asWd asWdPr">
                                        @Html.DropDownList("status", new[] { new SelectListItem() { Text = AdminResource.lbAll, Value = "0" }, new SelectListItem() { Text = AdminResource.lbActive, Value = "True" }, new SelectListItem() { Text = AdminResource.lbBlock, Value = "False" } })
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="AsLbl"></td>
                                <td>
                                    <div class="AsVal">
                                        <button class="default" type="button" id="as_search">Search</button>
                                        <button id="as_close">Close</button>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>   
    <div class="msgListMainContainer slideOnResize">
        <div class="msgBox">
            <div class="sort">
                <ul class="sort-items">
                    <li class="sortItemCheckbox">
                        <input type="checkbox" value="" class="checkAll" />
                    </li>
                    <li class="sortItem">
                        <span>
                            <span id="selectedBox" class="disable"><span id="itemSelected"></span>&nbsp;<a id="clearSelected" class="smallText blueColor" href="#" class="no-follow">Hủy chọn</a></span>
                            <a class="fil no-follow" href="#">@AdminResource.lbAll</a>
                        </span>
                        <div class="clear"></div>
                    </li>
                    <li class="sortMenu">                        
                        <a class="sortItems no-follow" href="#"><span>@AdminResource.lbSort</span>
                            <img alt="" class="excoOpenSmall " src="/Content/themes/admin/images/clear.gif" />
                        </a>
                        <div class="clear"></div>
                        <ul id="ulSort" class="category" style="right: 0;">
                            <li sort="" order="asc">Mặc định</li>
                            <li sort="order" order="asc">Theo thứ tự</li>
                        </ul>
                        <div class="clear"></div>
                    </li>
                </ul>
            </div>
            <div class="clear"></div>
        </div>
        <div id="msgList">
            @{
                Html.RenderPartial("SiteList", Model);
            }
        </div>
    </div>
}